package com.seguriapp.entities;

/**
 * Represents a Media Content Type enum.
 * 
 * @author Tania Gonzales(taniadgv@gmail.com)
 */
public enum MediaContentType {

  Image, Video, Audio;

  public static MediaContentType getEnumByString(final String text) {
    if (Image.name().equals(text)) {
      return Image;
    } else if (Video.name().equals(text)) {
      return Video;
    } else if (Audio.name().equals(text)) {
      return Audio;
    }
    return null;
  }

}
